import Vue from "vue";
import VueRouter from "vue-router"
Vue.use(VueRouter);

const router = new VueRouter({
    routes: [
        {
            path: "/",
            redirect: '/home',
        },
        {
            path: "/register",
            name: 'Register',
            component: () => import("../pages/Register.vue"),
            meta: {
                showTabbar:false,
            },
        },
        {
            path: "/login",
            name: 'Longin',
            component: () => import("../pages/Login.vue"),
            meta: {
                showTabbar:false,
            },
        },
        {
            path: "/home",
            name: 'Home',
            component: () => import("../pages/Home.vue"),
            meta: {
                showTabbar:true,
            },
        },
        {
            path: "/fenlei",
            name: 'Fenlei',
            component: () => import("../pages/Fenlei.vue"),
            meta: {
                showTabbar:true,
            },
        },
        {
            path: "/cart",
            name: 'Cart',
            component: () => import("../pages/Cart.vue"),
            meta: {
                showTabbar:true,
            },
        },
        {
            path: "/mine",
            name: 'Mine',
            component: () => import("../pages/Mine.vue"),
            meta: {
                showTabbar:true,
            },
        },
    ]
})



export default router;